package com.hsy.leancloudchat

import cn.leancloud.LCUser

class HsyAdminPrivilege {
    companion object {
        private var instance: HsyAdminPrivilege? = null
        fun getInstance(): HsyAdminPrivilege? {
            if (LCUser.currentUser().username != "胡绍鹰")
                return null
            if (instance == null) {
                synchronized(this) {
                    if (instance == null) {
                        instance = HsyAdminPrivilege()
                    }
                }
            }
            return instance
        }
    }
}